package com.kk.score.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kk.score.entity.DepartmentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kk.score.entity.vo.UnitVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * 
 * @author KK
 * @email 409592048@qq.com
 * @date 2022-11-02 12:28:00
 */
@Mapper
public interface DepartmentDao extends BaseMapper<DepartmentEntity> {

    /**
     * 查询教学单位
     * @param page
     * @param status
     * @return
     */
    IPage<?> findDepartmentPage(Page<DepartmentEntity> page, String status);

    /**
     * 查询部门
     * @param page
     * @param status
     * @return
     */
    IPage<?> findUnitPage(Page<DepartmentEntity> page, String status);

}
